package com.ahy231.config;

import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author ahy231
 * @date 2021/7/28 17:50
 * @description
 */
@Configuration
@EnableSwagger2
public class Swagger2Config extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.ahy231")
                .title("chat")
                .description("chat 接口文档")
                .contactName("ahy231")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}
